package lab02.test07;

public class Person {
    private String name;
    private int age;
    private String idNum;

    public Person(){}

    public Person(String name,int age,String idNum){
        this.age=age;
        this.name=name;
        this.idNum=idNum;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getIdNum() {
        return idNum;
    }

    public void setIdNum(String idNum) {
        this.idNum = idNum;
    }

    @Override
    public String toString() {
        return "姓名："+name+"\n"+"年龄："+age+"\n"+"身份证号："+idNum;
    }
}
